package com.woniuxy.three.pms.root.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.three.pms.bean.RootBean;
import com.woniuxy.three.pms.dao.RootBeanMapper;
import com.woniuxy.three.pms.root.service.IRootService;
/**
 * 
 * @ProjectName: RoomManagerSystem
 * @Package: com.woniuxy.three.pms.service.impl
 * @ClassName: RootServiceImpl
 * @author 郑杰  
 * @Description:操作员业务层实现
 * @date 2019年6月21日  上午11:02:46
 * @Version:1.0
 * @See：1.0
 */
@Service
public class RootServiceImpl implements IRootService {
	@Autowired
	private RootBeanMapper root;
	@Override
	public List<RootBean> selectByPrimaryKey() {
		List<RootBean> list = root.selectByPrimaryKey();
		return list;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		int i = root.deleteByPrimaryKey(id);
		return i;
	}

	@Override
	public int insert(RootBean record) {
		int i = root.insert(record);
		return i;
	}

	@Override
	public int updateByPrimaryKey(RootBean record) {
		int i = root.updateByPrimaryKey(record);
		return i;
	}

	@Override
	public RootBean login(String name) {
		RootBean rootBean = root.login(name);
		return rootBean;
	}

	@Override
	public RootBean findById(Integer rid) {
		
		return root.selectByPrimaryKey1(rid);
	}

}
